using FrameWorkSong;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GraphicLineCreate 
{
   
    Transform canvasTransform;
    float lineWeight;
    public void  LineCreate(GameObject gameObject, Color newColor,Material material, List<Vector3> vec, float Weight)
    {

        Transform canvasTransform = GameObject.Find("Canvas").transform;
        gameObject.transform.SetParent(canvasTransform, false);
        gameObject.AddComponent<CanvasRenderer>();
        DottedLine dottedLine = gameObject.AddComponent<DottedLine>();
        gameObject.transform.position = Vector3.zero;
        dottedLine.newColor = newColor;
        dottedLine.material = material;
        dottedLine.lineWeight = Weight;
        dottedLine.vectors = vec;

    }

 
}
